﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VicMessenger.DB;
using VicMessenger.DAL;

namespace VicMessenger.BLL
{
    public class CustomFieldBLL
    {
        public static List<proc_CustomeField_SelectResult> GetCustomFieldByID(long prmCustomFieldID)
        {
            try
            {
                return CustomFieldDAL.GetCustomField(prmCustomFieldID, null);
            }
            catch (Exception)
            {

                return null;
            }
        }
        public static List<proc_CustomeField_SelectResult> GetCustomFieldsByContactID(long prmContactID)
        {
            try
            {
                return CustomFieldDAL.GetCustomField(null, prmContactID);
            }
            catch (Exception)
            {

                return null;
            }
        }



        public static long? InsertUpdateCustomField(proc_CustomeField_SelectResult prmCustomField)
        {
            try
            {
                return CustomFieldDAL.InsertUpdateCustomField(prmCustomField);
            }
            catch (Exception)
            {

                return null;
            }
        }
    }
}
